unsafe class Fun
{
  static void Main()
  {
    int i = 10, j = 10, sum1, sum2;
    sum1 = (i / 2) + fun (&i);
    sum2 = fun(&j) + (j / 2);
    System.Console.WriteLine(sum1);
    System.Console.WriteLine(sum2);
    return;
  }

  private static int fun(int* k)
  {
    *k += 4;
    return 3 * (*k) - 1;
  }
}
